package com.ruoyi.web.convert.terminalsDayfreezeDb;

import com.ruoyi.datastatistics.domain.TerminalsDayfreezeDb;
import com.ruoyi.web.entity.FreezeDay2;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 系统报错 Convert
 *
 * @author 芋道源码
 */
@Mapper
public interface TerminalsDayfreezeDbConvert {

    TerminalsDayfreezeDbConvert INSTANCE = Mappers.getMapper(TerminalsDayfreezeDbConvert.class);

    @Mapping(source = "getTimeN", target = "GetTimeN")
    @Mapping(source = "readNumberO", target = "ReadNumberO")
    @Mapping(source = "readNumberN", target = "ReadNumberN")
    @Mapping(source = "reverseNumberO", target = "ReverseNumberO")
    @Mapping(source = "reverseNumberN", target = "ReverseNumberN")
    @Mapping(source = "totalFlowO", target = "TotalFlowO")
    @Mapping(source = "totalFlowN", target = "TotalFlowN")
    @Mapping(source = "readDosageN", target = "ReadDosageN")
    @Mapping(source = "dosageN", target = "DosageN")
    FreezeDay2 convert(TerminalsDayfreezeDb bean);


    List<FreezeDay2> convert(List<TerminalsDayfreezeDb> bean);

}
